<template>
  <!-- 根据当前路由决定是否显示悬浮球 -->
  <FloatingBall v-if="shouldShowFloatingBall" />
  
  <!-- 路由视图 -->
  <router-view />
</template>

<script>
import FloatingBall from '@/views/sub-function/AI_Assistant/DeepSeekAssistantView.vue'; // 请替换为你的悬浮球组件路径

export default {
  name: 'App',
  components: {
    FloatingBall
  },
  computed: {
    shouldShowFloatingBall() {
      // 如果当前路由有元信息且设置了 showFloatingBall: false，则隐藏悬浮球
      return this.$route.meta.showFloatingBall !== false;
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  position: relative; /* 确保悬浮球定位正确 */
}
</style>